import sqlite3
# 连接到 SQLite 数据库
conn = sqlite3.connect('./nmg_info.db')
cursor = conn.cursor()
# 插入数据
cursor.execute('''
INSERT INTO 
population_info (region_id, year, 
total_population)
VALUES (?, ?, ?)
''', (101, 2023, 2404.9))
# 提交事务
conn.commit()
# 关闭连接
conn.close()
print('数据插入成功！')
